package com.uni.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 快递代拿订单
 * @author yuyanzheng
 *
 */
@Data
@NoArgsConstructor
public class ExpressOrderDTO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Long orderId;
	private String orderNo;
	private Long userId;
	@NotBlank(message="不能为空")
	private String phone;
	@NotBlank(message="不能为空")
	private String address;
	@NotBlank(message="不能为空")
	private String username;
	@NotNull(message="不能为空")
	private Long schoolId;
//	@NotNull(message="不能为空")
//	private Long expressPointId;
	@NotBlank(message="不能为空")
	private String expressPointName;
	
//	private String pickupCode;
//	@NotNull(message="不能为空")
	private Integer payType;
//	@NotBlank(message="不能为空")
//	private String goodsType;
//	@NotNull(message="不能为空")
//	private Double goodsWeight;
	
	private String remark;
//	@NotBlank(message="不能为空")
//	private String expressType;
	
	@NotNull(message="不能为空")
//	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm")
	private Date deliversStartTime;
	@NotNull(message="不能为空")
//	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm")
	private Date deliversEndTime;
	
	private Date deliversTime;
	private Integer price;
	private Integer status;
	private Date updateTime;
	private Date createTime;
	
	private List<GoodsInfoDTO> goods;
}
